package com.qyhl.question.question;


import com.qyhl.webtv.commonlib.entity.question.QuestionHomeBean;

public class QuestionHomePresenter implements QuestionHomeContract.QuestionHomePresenter {
    private QuestionHomeActivity mView;

    private QuestionHomeModel mModel;

    QuestionHomePresenter(QuestionHomeActivity mView) {
        this.mView = mView;
        this.mModel = new QuestionHomeModel(this);
    }

    @Override
    public void getData() {
        mModel.getData();
    }

    @Override
    public void setData(QuestionHomeBean bean) {
        mView.setData(bean);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }
}
